﻿CREATE OR REPLACE FUNCTION public.log2(double precision) RETURNS double precision AS $$
    -- Compute the logarithm base 2
    SELECT (log(2::numeric, $1::numeric))::double precision
$$ LANGUAGE sql strict immutable;
